export default {
  data() {
    return {
      tableData: [],
      nowPage: 1
    }
  },
  computed: {
    maxPage() { 
      return Math.ceil(this.tableData.length / 3)
    },
    nowData() {
      let qishi = (this.nowPage - 1) * 3
      // console.log(this.tableData)
      return this.tableData.slice(qishi, qishi + 3)
    }
  },
  methods: {
    changePage(num) {
      this.nowPage = num
    }
  },
}